"use strict";
// #region 继承
class Person {
    // public name:string;
    //修饰符没写默认public
    // age:number;
    //构造函数，简写属性赋值
    constructor(name, age) {
        this.name = name;
        this.age = age;
        this.name = name;
        this.age = age;
    }
    eat() {
        console.log(this.name + "在吃饭", this.age, "岁", "哈哈哈");
    }
}
class Student extends Person {
    constructor(name, age, score) {
        super(name, age);
        this.score = score;
    }
    study() {
        console.log("我正在学习");
    }
    eat() {
        console.log(this.name + "我正在吃饭");
    }
}
new Student("小明", 18, 90).eat();
//#endregion
